<?php

namespace Database\Seeders;

use App\Models\Village;
use Illuminate\Database\Seeder;

class VillageSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $data = [
            [
                'name' => '社富村',
                'vid' => "360732205200"
            ],
            [
                'name' => '留龙村',
                'vid' => "360732205201"
            ], [
                'name' => '九山村',
                'vid' => "360732205202"
            ], [
                'name' => '廖下村',
                'vid' => "360732205203"
            ], [
                'name' => '金龙村',
                'vid' => "360732205204"
            ], [
                'name' => '五龙村',
                'vid' => "360732205205"
            ], [
                'name' => '黄岗村',
                'vid' => "360732205206"
            ], [
                'name' => '桂江村',
                'vid' => "360732205207"
            ], [
                'name' => '稠村村',
                'vid' => "360732205208"
            ], [
                'name' => '双龙村',
                'vid' => "360732205209"
            ], [
                'name' => '溪源村',
                'vid' => "360732205210"
            ], [
                'name' => '东韶村',
                'vid' => "360732205211"
            ],
            [
                'name' => '横溪村',
                'vid' => "360732205212"
            ], [
                'name' => '纸帮村',
                'vid' => "360732205213"
            ], [
                'name' => '路溪村',
                'vid' => "360732205214"
            ]
        ];
        array_map(function ($d) {
            Village::create($d);
        }, $data);
    }
}
